import { combineReducers } from 'redux';
import * as ActionTypes from '@/action/type';

const user = (state = {}, action) => {
  switch (action.type) {
    case ActionTypes.USER_SET_INFO:
      return action.user;
    default:
      return state;
  }
};

const screen = (state = {}, action) => {
  switch (action.type) {
    case ActionTypes.SCREEN_SET_INFO:
      return action.screen;
    default:
      return state;
  }
};

export default combineReducers({
  user,
  screen
});
